import 'package:hotpot/generated/json/base/json_convert_content.dart';
import 'package:hotpot/models/stock_picking.dart';

StockPicking $StockPickingFromJson(Map<String, dynamic> json) {
	final StockPicking stockPicking = StockPicking();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		stockPicking.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		stockPicking.name = name;
	}
	final String? state = jsonConvert.convert<String>(json['state']);
	if (state != null) {
		stockPicking.state = state;
	}
	final String? createDate = jsonConvert.convert<String>(json['create_date']);
	if (createDate != null) {
		stockPicking.createDate = createDate;
	}
	return stockPicking;
}

Map<String, dynamic> $StockPickingToJson(StockPicking entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['state'] = entity.state;
	data['create_date'] = entity.createDate;
	return data;
}